
<div class="pageContent">
	<form method="post" action="<?echo __WWWROOT__?>Admin/News/add.php" class="pageForm required-validate" onsubmit="return validateCallback(this, navTabAjaxDone);">
		<div class="pageFormContent" layoutH="56">
			<dl>
				<dt>标题：</dt>
				<dd><input name="title" id="title" class="required" type="text" size="30" value="" alt=""/></dd>
			</dl>
			<dl class="nowrap">
				<dt>类型：</dt>
				<dd>
					<select name="type" class="required">
						<option value="">--类型--</option>
						<?foreach($types as $key=>$t){?>
						<option value="<?echo $key?>"><?echo $t?></option>}
						<?}?>
					</select>
				</dd>
			</dl>
			<dl class="nowrap">
				<dt>排序值：</dt>
				<dd><input name="rank" type="text" size="20" value="" alt=""/></dd>
			</dl>
			<dl class="nowrap">
				<dt>内容：</dt>
				<dd><div class="unit"><textarea class="editor" name="content" rows="16" cols="100" upImgUrl="News/upload.php" upImgExt="jpg,jpeg,gif,png"></textarea></div></dd>
			</dl>
			<dl class="nowrap">
				<dt>创建者：</dt>
				<dd><input name="create_username" type="text" size="20" value="<?echo $username?>" alt="" readonly="readonly"/></dd>
			</dl>
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">添加</button></div></div></li>
				<li>
					<div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
				</li>
			</ul>
		</div>
	</form>
</div>

<script type="text/javascript">
	$("#title").focus();
</script>
